package com.note.simpleshop.module.coupon.dto;

import com.note.simpleshop.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Set;
import java.util.TreeSet;

/***
 *@ClaseName:CouponDto
 *
 *@Decription:
 *
 *@Author: xubingbing
 *
 *@Date:2019/3/9 0009 21:58
 */
@ApiModel(value="优惠劵数据传递类")
public class CouponDto extends BaseDto {
    public static final String USED="used";
    public static final String UN_USED="un_used";
    public static final String EXPIRED="expired";
    public static Set<String> SET=new TreeSet<String>();
    static {
        SET.add(USED);
        SET.add(UN_USED);
        SET.add(EXPIRED);
    }
    @ApiModelProperty(value = "未使用un_used,已经使用used,过期expired")
    private String state;
    @ApiModelProperty(value = "用户id")
    private String userId;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
}
